﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WCFContracts;
using TrainingWorkshop.IDAL;

namespace WCFServices
{
    /// <summary>
    /// Author:Sissi-Zeng
    /// Date:2012-8-28 20:00
    /// Class ProjectBService provides a set of services to client.
    /// In this part, ProjectBService implements IProjectService methods in LevelBU,which is a service contract
    /// </summary>
    public partial class ProjectBService : IProjectBService
    {
        /// <summary>
        /// get all course level from factory
        /// </summary>
        /// <returns>List of level</returns>
        public List<TrainingWorkshop.Model.Level> GetLevels()
        {
            ILevelRepository levelRep = factory.CreateLevelRepository();
            return levelRep.SelectAll();
        }
    }
}
